package cn.wolfcode.feign.fallback;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.feign.ProductFeignApi;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LuoRis
 * @date 2021/03/05 21:11
 * @description 兜底数据
 */
@Component
public class ProductFeignFallBack implements ProductFeignApi {
    @Override
    public Result<List<Product>> queryProductByIds(List<Long> ids) {
        Product product = new Product();
        List<Product> list =new ArrayList<>();
        list.add(product);
        return Result.success(list);
    }
}
